from flask import Blueprint

from app import utils
from app.service import get_trade_list

trade_controller = Blueprint('trade_controller', __name__)

@trade_controller.get("/list")
def get_trade():
    trade_list= get_trade_list()
    return utils.success(trade_list)